
package com.sys.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 通知公告用户对象 sys_notice_user
 *
 * @author LGY
 * @date 2025-04-16
 */
@Data
@Accessors(chain = true)
@TableName("sys_notice_user")
@Schema(description = "通知公告用户对象")
public class SysNoticeUser extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 公告ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "公告ID")
    private String id;
    /**
     * 公告id
     */
    @Excel(name = "公告id")
    @TableField(value = "notice_id")
    @Schema(description = "公告id")
    private String noticeId;
    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(value = "user_id")
    @Schema(description = "用户id")
    private String userId;
    /**
     * 状态 0：未读  1：已读
     */
    @Excel(name = "状态 0：未读  1：已读")
    @TableField(value = "status")
    @Schema(description = "状态 0：未读  1：已读")
    private Integer status;
    /**
     * 收藏状态 0：未收藏 1：已收藏
     */
    @Excel(name = "收藏状态 0：未收藏 1：已收藏")
    @TableField(value = "has_like")
    @Schema(description = "收藏状态 0：未收藏 1：已收藏")
    private Integer hasLike;
    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;
}